]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Pass script on CLI instead of via environment
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Jun 2023 01:53:32 +0000 (03:53 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 7 Jul 2023 17:43:28 +0000 (19:43 +0200)
commitbf9b9838c27ee8772b10b40fd3d44ed10071e52a
tree14e66fcf6cd9e23ccecff6536d7235aeef8bdbb9
parent5e9379170826f2ba45e6387092e3293023140d2c
main: Pass script on CLI instead of via environment

Environment variables aren't the best option to pass parameters
to a process (wouldn't it be "fun" if SHELL_PERF_MODULE appeared
in a regular user session?).

Instead, use a (hidden) --automation-script command line flag to
specify a script file that should be used to drive an automated
session.

As a side effect, the script no longer has to be relative to the
main module itself, so it will be possible to run scripts that
aren't bundled with the shell sources.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2812>
js/ui/main.js
src/gnome-shell-perf-tool.in
src/main.c
src/shell-global.c
tests/meson.build